package com.uls.ycl.mapper;

import java.util.List;
import com.uls.ycl.domain.RepairMaterial;

/**
 * 材料Mapper接口
 * 
 * @author ycl
 * @date 2024-11-09
 */
public interface RepairMaterialMapper 
{
    /**
     * 查询材料
     * 
     * @param materialId 材料主键
     * @return 材料
     */
    public RepairMaterial selectRepairMaterialByMaterialId(Long materialId);

    /**
     * 查询材料列表
     * 
     * @param repairMaterial 材料
     * @return 材料集合
     */
    public List<RepairMaterial> selectRepairMaterialList(RepairMaterial repairMaterial);

    /**
     * 新增材料
     * 
     * @param repairMaterial 材料
     * @return 结果
     */
    public int insertRepairMaterial(RepairMaterial repairMaterial);

    /**
     * 修改材料
     * 
     * @param repairMaterial 材料
     * @return 结果
     */
    public int updateRepairMaterial(RepairMaterial repairMaterial);

    /**
     * 删除材料
     * 
     * @param materialId 材料主键
     * @return 结果
     */
    public int deleteRepairMaterialByMaterialId(Long materialId);

    /**
     * 批量删除材料
     * 
     * @param materialIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteRepairMaterialByMaterialIds(Long[] materialIds);
}
